home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Macintosh / ResEdit3.0.sit / ResEdit™ 3.0 / ResEdit 3.0.rsrc / VDL_131_Resource.MENU < prev    next >
Text File  |  1997-01-27  |  6KB  |  221 lines

  1. Margin(10, 10, 10, 10)
  2. HList()
  3.     {
  4.     VList()
  5.         {
  6.         GenericView("MenuTitleBuilderProc");
  7.         MenuItemList(Width = 200, Height = 250);
  8.         }
  9.     Spacer(Width = 10);    
  10.     Spacer(Width = 1, BackColor = {45000, 45000, 45000});
  11.     Spacer(Width = 10);
  12.     Switch(N_curMode)
  13.         {
  14.         case 0: //NormalItem
  15.             VList()
  16.                 {
  17.                 IntegerPopup("Item Type:", 90, N_selItem.type, Alignment = Right)
  18.                     {
  19.                     IntItem("Normal Item", 0);
  20.                     IntItem("Submenu Item", 1);
  21.                     IntItem("Separator", 2);
  22.                     };
  23.                 Spacer(Height = 5);
  24.                 EditText( N_selItem.name, Width = 290,Label = "Item Text: ", LabelWidth = 90, LabelAlignment = Right);
  25.                 Spacer(Height = 5);
  26.                 EditText( N_selItem.iconID, Width =  290, FilterProc = "MENUItemIconIDFilterProc", Label = "Icon ID: ", LabelWidth = 90, LabelAlignment = Right);
  27.                 Spacer(Height = 5);
  28.                 StylePopup("Item Style:", 88, N_selItem.style, Alignment = Right);
  29.                 Spacer(Height = 5);
  30.                 IntegerPopup("Icon Type:", 88, N_selItem.iconType, Alignment = Right)
  31.                     {
  32.                     IntItem("Normal", 0);
  33.                     IntItem("Half Height", 1);
  34.                     IntItem("sicn", 2);
  35.                     };
  36.                 
  37.                 CheckBox("Enabled", N_selItem.enabled, Width = 70);
  38.                 Spacer(Height = 5);
  39.                 Label("Colors: ", Single)
  40.                     Margin(2,2,5,5)
  41.                     VList(Width = 225)
  42.                         {
  43.                         HList(Width = UseParent)
  44.                             {
  45.                             Spacer(); 
  46.                             StaticText("Item Text: ", Alignment = Right);
  47.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  48.                                 ColorControl(    N_selItem.textColor_red, 
  49.                                                 N_selItem.textColor_green, 
  50.                                                 N_selItem.textColor_blue); 
  51.                             }
  52.                         Spacer(Height = 6);    
  53.                         HList(Width = UseParent)
  54.                             {
  55.                             Spacer(); 
  56.                             EditText( N_selItem.cmdKey, Width = 135,Label = "Cmd Key: ", LabelWidth = 90, LabelAlignment = Right);
  57.                             Spacer(Width = 5);
  58.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  59.                                 ColorControl(    N_selItem.keyColor_red,
  60.                                                    N_selItem.keyColor_green,
  61.                                                 N_selItem.keyColor_blue); 
  62.                             }
  63.                         Spacer(Height = 3);
  64.                         HList(Width = UseParent)
  65.                             {
  66.                             Spacer(); 
  67.                             IntegerPopup("Item Mark:", 90, N_selItem.mark, Alignment = Right, Width = 117)
  68.                                 {
  69.                                 IntItem("None", 0);
  70.                                 IntItem("Check",1);
  71.                                 IntItem("Diamond", 2);
  72.                                 IntItem("Hollow Diamond", 3);
  73.                                 };
  74.                             Spacer(Width = 5);
  75.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  76.                                 ColorControl(    N_selItem.markColor_red, 
  77.                                                 N_selItem.markColor_green, 
  78.                                                 N_selItem.markColor_blue); 
  79.                             }
  80.                             
  81.                         }
  82.                 } 
  83.             //Case 0    
  84.             
  85.         case 1: //Popup Item
  86.             VList()
  87.                 {
  88.                 IntegerPopup("Item Type:", 90, N_selItem.type, Alignment = Right)
  89.                     {
  90.                     IntItem("Normal Item", 0);
  91.                     IntItem("Submenu Item", 1);
  92.                     IntItem("Separator", 2);
  93.                     };
  94.                     
  95.                 Spacer(Height = 5);
  96.                 EditText( N_selItem.name, Width = 290,Label = "Item Text: ", LabelWidth = 90, LabelAlignment = Right);
  97.                 Spacer(Height = 5);
  98.                 EditText( N_selItem.submenuID, Width = 140,Label = "Submenu ID: ", LabelWidth = 90, LabelAlignment = Right);
  99.                 Spacer(Height = 5);
  100.                 HList(Width = UseParent)
  101.                     {
  102.                     Spacer();
  103.                     CheckBox("Enabled", N_selItem.enabled, Width = 70);
  104.                     }
  105.                 Spacer(Height = 5);
  106.  
  107.                 Label("Colors: ", Single)
  108.                     Margin(2,2,5,5)
  109.                     VList(Width =  225)
  110.                         {
  111.                         HList(Width = UseParent)
  112.                             {
  113.                             Spacer(); 
  114.                             StaticText("Item Text: ", Alignment = Right);
  115.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  116.                                 ColorControl(N_selItem.textColor_red, N_selItem.textColor_green, N_selItem.textColor_blue); 
  117.                             }
  118.                         Spacer(Height = 3);
  119.                         HList(Width = UseParent)
  120.                             {
  121.                             Spacer(); 
  122.                             Margin(2,2,2,2)
  123.                                 PICT(2016);
  124.                                 
  125.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  126.                                 ColorControl(N_selItem.markColor_red, N_selItem.markColor_green, N_selItem.markColor_blue); 
  127.                             }
  128.                         }
  129.                 }
  130.             //Case 1
  131.             
  132.         case 2: //Separator
  133.             VList()
  134.                 {
  135.                 IntegerPopup("Item Type:", 90, N_selItem.type, Alignment = Right)
  136.                     {
  137.                     IntItem("Normal Item", 0);
  138.                     IntItem("Submenu Item", 1);
  139.                     IntItem("Separator", 2);
  140.                     };
  141.                 Spacer(Height = 5);
  142.                 HList()
  143.                     {
  144.                     StaticText("Item Color: ", Width = 90, Alignment = Right);
  145.                     Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  146.                         ColorControl(N_selItem.textColor_red, N_selItem.textColor_green, N_selItem.textColor_blue); 
  147.                     }
  148.                 Spacer(Height = 5);
  149.                 HList(Width = UseParent)
  150.                     {
  151.                     Spacer();
  152.                     CheckBox("Enabled", N_selItem.enabled, Width = 70);
  153.                     }
  154.                 Spacer(Height = 5);
  155.                 }
  156.             //case 2
  157.             
  158.         case 3: //Whole Menu
  159.             VList()
  160.                 {
  161.                 Spacer(Height = 5);
  162.                 EditText( menuID, Width = 140,Label = "Menu ID: ", LabelWidth = 90, LabelAlignment = Right);
  163.                 Spacer(Height = 5);
  164.                 EditText( procID, Width = 140,Label = "Proc ID: ", LabelWidth = 90, LabelAlignment = Right);
  165.                 Spacer(Height = 5);
  166.                 Switch (appleMenu)
  167.                     {
  168.                     case 0:
  169.                         Margin(0,0,0,5)
  170.                             EditText( title, Width = 290,Label = "Menu Title: ", LabelWidth = 90, LabelAlignment = Right);
  171.                     case 1: 
  172.                         HList()
  173.                             {
  174.                             Margin(0,2,0,2)
  175.                                 StaticText("Menu Title: ", Width = 90, Alignment = Right);
  176.                             Margin(2,2,2,3, Single, Outer)
  177.                                 ics8(-16386);
  178.                             }
  179.                     }
  180.                 Spacer(Height = 5);
  181.                 CheckBox("Apple Menu", appleMenu);
  182.                 Spacer(Height = 5);
  183.                 CheckBox("Enabled", enabled, Width = 70);
  184.                 Spacer(Height = 5);
  185.                 Label("Colors: ", Single)
  186.                     Margin(2,2,5,5)
  187.                     VList(Width =  225)
  188.                         {
  189.                         HList(Width = UseParent)
  190.                             {
  191.                             Spacer(); 
  192.                             StaticText("Menu Title: ", Alignment = Right);
  193.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  194.                                 ColorControl(titleColor_red, titleColor_green, titleColor_blue); 
  195.                             }
  196.                         Spacer(Height = 3);
  197.                         
  198.                         HList(Width = UseParent)
  199.                             {
  200.                             Spacer(); 
  201.                             StaticText("Background: ", Alignment = Right);
  202.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  203.                                 ColorControl(backColor_red, backColor_green, backColor_blue); 
  204.                             }
  205.                         Spacer(Height = 3);
  206.  
  207.                         HList(Width = UseParent)
  208.                             {
  209.                             Spacer(); 
  210.                             StaticText("Default Item Text: ", Alignment = Right);
  211.                             Margin(2,2,2,2, Single, Outer, Height = 18, Width = 24)
  212.                                 ColorControl(itemColor_red, itemColor_green, itemColor_blue); 
  213.                             }
  214.                         Spacer(Height = 3);
  215.                         }
  216.                 }
  217.             //case 3
  218.         default:
  219.             Spacer(Height = 5, Width = 5);
  220.         }//MenuMode Switch
  221.     }